package cn.shengchao.examstar.shared.domain.repository;

import cn.shengchao.examstar.shared.domain.aggregate.BaseAggregate;
import java.util.Optional;

public interface Repository<T extends BaseAggregate, ID> {
    Optional<T> findById(ID id);
    T save(T aggregate);
    void delete(T aggregate);
} 